<!DOCTYPE html>
<html lang="zh-CN">
<head>
  <meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=2">
<meta name="theme-color" content="#222">
<meta name="generator" content="Hexo 4.2.0">
  <link rel="apple-touch-icon" sizes="180x180" href="/images/apple-touch-icon-next.png">
  <link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32-next.png">
  <link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16-next.png">
  <link rel="mask-icon" href="/images/logo.svg" color="#222">

<link rel="stylesheet" href="/css/main.css">


<link rel="stylesheet" href="/lib/font-awesome/css/font-awesome.min.css">
  <link rel="stylesheet" href="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.css">

<script id="hexo-configurations">
    var NexT = window.NexT || {};
    var CONFIG = {"hostname":"halma.gitee.io","root":"/","scheme":"Pisces","version":"7.7.2","exturl":false,"sidebar":{"position":"right","display":"post","padding":18,"offset":12,"onmobile":false},"copycode":{"enable":false,"show_result":false,"style":"mac"},"back2top":{"enable":true,"sidebar":false,"scrollpercent":false},"bookmark":{"enable":false,"color":"#222","save":"auto"},"fancybox":true,"mediumzoom":false,"lazyload":false,"pangu":false,"comments":{"style":"tabs","active":null,"storage":true,"lazyload":false,"nav":null},"algolia":{"hits":{"per_page":10},"labels":{"input_placeholder":"Search for Posts","hits_empty":"We didn't find any results for the search: ${query}","hits_stats":"${hits} results found in ${time} ms"}},"localsearch":{"enable":false,"trigger":"auto","top_n_per_article":1,"unescape":false,"preload":false},"motion":{"enable":true,"async":false,"transition":{"post_block":"fadeIn","post_header":"slideDownIn","post_body":"slideDownIn","coll_header":"slideLeftIn","sidebar":"slideUpIn"}}};
  </script>

  <meta name="description" content="本文记述了Acer 4738G 黑苹果的全过程。你在这里可以学到如何使用SSDT屏蔽或填加设备。">
<meta property="og:type" content="article">
<meta property="og:title" content="Acer 4738G 黑苹果记实">
<meta property="og:url" content="https://halma.gitee.io/2020/4738g/index.html">
<meta property="og:site_name" content="左右流之的放逐岛">
<meta property="og:description" content="本文记述了Acer 4738G 黑苹果的全过程。你在这里可以学到如何使用SSDT屏蔽或填加设备。">
<meta property="og:locale" content="zh_CN">
<meta property="og:image" content="https://halma.gitee.io/2020/4738g/voodoops2.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4738g/boot.png">
<meta property="og:image" content="https://halma.gitee.io/2020/4738g/6370.png">
<meta property="article:published_time" content="2020-03-30T08:07:37.000Z">
<meta property="article:modified_time" content="2020-04-29T11:40:03.242Z">
<meta property="article:author" content="左右流之">
<meta property="article:tag" content="4738G">
<meta property="article:tag" content="黑苹果">
<meta property="article:tag" content="左右流之">
<meta name="twitter:card" content="summary">
<meta name="twitter:image" content="https://halma.gitee.io/2020/4738g/voodoops2.png">

<link rel="canonical" href="https://halma.gitee.io/2020/4738g/">


<script id="page-configurations">
  // https://hexo.io/docs/variables.html
  CONFIG.page = {
    sidebar: "",
    isHome : false,
    isPost : true,
    lang   : 'zh-CN'
  };
</script>

  <title>Acer 4738G 黑苹果记实 | 左右流之的放逐岛</title>
  






  <noscript>
  <style>
  .use-motion .brand,
  .use-motion .menu-item,
  .sidebar-inner,
  .use-motion .post-block,
  .use-motion .pagination,
  .use-motion .comments,
  .use-motion .post-header,
  .use-motion .post-body,
  .use-motion .collection-header { opacity: initial; }

  .use-motion .site-title,
  .use-motion .site-subtitle {
    opacity: initial;
    top: initial;
  }

  .use-motion .logo-line-before i { left: initial; }
  .use-motion .logo-line-after i { right: initial; }
  </style>
</noscript>

</head>

<body itemscope itemtype="http://schema.org/WebPage">
  <div class="container use-motion">
    <div class="headband"></div>

    <header class="header" itemscope itemtype="http://schema.org/WPHeader">
      <div class="header-inner"><div class="site-brand-container">
  <div class="site-nav-toggle">
    <div class="toggle" aria-label="切换导航栏">
      <span class="toggle-line toggle-line-first"></span>
      <span class="toggle-line toggle-line-middle"></span>
      <span class="toggle-line toggle-line-last"></span>
    </div>
  </div>

  <div class="site-meta">

    <a href="/" class="brand" rel="start">
      <span class="logo-line-before"><i></i></span>
      <h1 class="site-title">左右流之的放逐岛</h1>
      <span class="logo-line-after"><i></i></span>
    </a>
      <p class="site-subtitle" itemprop="description">黑苹果技术分享</p>
  </div>

  <div class="site-nav-right">
    <div class="toggle popup-trigger">
    </div>
  </div>
</div>




<nav class="site-nav">
  <ul id="menu" class="menu">
        <li class="menu-item menu-item-home">

    <a href="/" rel="section"><i class="fa fa-fw fa-home"></i>首页</a>

  </li>
        <li class="menu-item menu-item-about">

    <a href="/about/" rel="section"><i class="fa fa-fw fa-user"></i>关于</a>

  </li>
        <li class="menu-item menu-item-tags">

    <a href="/tags/" rel="section"><i class="fa fa-fw fa-tags"></i>标签</a>

  </li>
        <li class="menu-item menu-item-categories">

    <a href="/categories/" rel="section"><i class="fa fa-fw fa-th"></i>分类</a>

  </li>
        <li class="menu-item menu-item-archives">

    <a href="/archives/" rel="section"><i class="fa fa-fw fa-archive"></i>归档</a>

  </li>
  </ul>
</nav>




</div>
    </header>

    
  <div class="back-to-top">
    <i class="fa fa-arrow-up"></i>
    <span>0%</span>
  </div>


    <main class="main">
      <div class="main-inner">
        <div class="content-wrap">
          

          <div class="content post">
            

  <div class="posts-expand">
      
  
  
  <article itemscope itemtype="http://schema.org/Article" class="post-block" lang="zh-CN">
    <link itemprop="mainEntityOfPage" href="https://halma.gitee.io/2020/4738g/">

    <span hidden itemprop="author" itemscope itemtype="http://schema.org/Person">
      <meta itemprop="image" content="/images/avatar.gif">
      <meta itemprop="name" content="左右流之">
      <meta itemprop="description" content="折腾不需要理由">
    </span>

    <span hidden itemprop="publisher" itemscope itemtype="http://schema.org/Organization">
      <meta itemprop="name" content="左右流之的放逐岛">
    </span>
      <header class="post-header">
        <h1 class="post-title" itemprop="name headline">
          Acer 4738G 黑苹果记实
        </h1>

        <div class="post-meta">
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-calendar-o"></i>
              </span>
              <span class="post-meta-item-text">发表于</span>

              <time title="创建时间：2020-03-30 16:07:37" itemprop="dateCreated datePublished" datetime="2020-03-30T16:07:37+08:00">2020-03-30</time>
            </span>
              <span class="post-meta-item">
                <span class="post-meta-item-icon">
                  <i class="fa fa-calendar-check-o"></i>
                </span>
                <span class="post-meta-item-text">更新于</span>
                <time title="修改时间：2020-04-29 19:40:03" itemprop="dateModified" datetime="2020-04-29T19:40:03+08:00">2020-04-29</time>
              </span>
            <span class="post-meta-item">
              <span class="post-meta-item-icon">
                <i class="fa fa-folder-o"></i>
              </span>
              <span class="post-meta-item-text">分类于</span>
                <span itemprop="about" itemscope itemtype="http://schema.org/Thing">
                  <a href="/categories/Hackintosh/" itemprop="url" rel="index"><span itemprop="name">Hackintosh</span></a>
                </span>
            </span>

          
            <span class="post-meta-item" title="阅读次数" id="busuanzi_container_page_pv" style="display: none;">
              <span class="post-meta-item-icon">
                <i class="fa fa-eye"></i>
              </span>
              <span class="post-meta-item-text">阅读次数：</span>
              <span id="busuanzi_value_page_pv"></span>
            </span>
  
  
            <div class="post-description">本文记述了Acer 4738G 黑苹果的全过程。你在这里可以学到如何使用SSDT屏蔽或填加设备。</div>

        </div>
      </header>

    
    
    
    <div class="post-body" itemprop="articleBody">

      
        <p>OpenCore是最近兴起的在PC机上引导MacOS系统的新程序。在非常顺利地引导了ASUS_Z370-P +8700k+Vega56台式机之后，开始折腾ACER4738G，这笔记本已经老掉牙了，i380m的CPU，ATI 6370M显卡。运行的系统是MacOS10.13.6。</p>
<h1 id="11月24日"><a href="#11月24日" class="headerlink" title="11月24日"></a>11月24日</h1><p>除了将FakeSMC.kext替换成VirtualSMC.kext之外，其他驱动一概平移到OC中。<br>本次使用特意用了个U盘做OC引导，选用了SampleFull.plist作为Config.plist的模版。<br>第一步，就是按照模版补全SMBIOS信息，不是一般的费时间。<br>第二步，编辑efi文件和Kext驱动的信息，这里要注意的是VoodooPS2Controller.kext这个驱动套件，它的Plugins里还有三个驱动，我们就需要再添加三项，并注意在绑定驱动路径时，BundlePath这一项直接写全路径，比如这样写：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">VoodooPS2Controller.kext&#x2F;Contents&#x2F;PlugIns&#x2F;VoodooPS2Keyboard.kext</span><br></pre></td></tr></table></figure>
<p><img src="voodoops2.png" alt="VoodooPs2驱动的写法"></p>
<p>之后的ExecutablePath和PlistPatch，都是相对于这个路径的。也就是基本上按照原格式写就行了。千万别写错啊，否则OC会卡在那里的。</p>
<p>因为是传统BIOS，U盘的EFI分区直接放进OC引导文件是不能启动系统的。所以需要使用OC提供的Bootinstall工具。打开终端，将Bootinstall.command拖进终端，按照提示，键入U盘的Disk id号。继续按提示操作。<br><img src="boot.png" alt="传统Bios引导制作"></p>
<p>然后把Bootinstall提供的boot文件复制到U盘的EFI分区（不是里面的EFI文件夹）。<br>由于是传统Bios引导，OC的配置需要注意一些问题</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br></pre></td><td class="code"><pre><span class="line">NVRAM——&gt;LegacyEnable—&gt;YES</span><br><span class="line">Misc——&gt;Security——&gt;RequireSignature——&gt;NO</span><br><span class="line">Misc——&gt;Security——&gt;RequireVault——&gt;NO</span><br><span class="line">NVRAM——&gt;7C43611……——&gt;csr-active-config——&gt;E7030000</span><br><span class="line">Misc——&gt;Security——&gt;ExposeSensitiveData——&gt;3</span><br></pre></td></tr></table></figure>
<p>这个OC版本比较老了，新版本的RequireVault改成了Vault要这样填：</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br></pre></td><td class="code"><pre><span class="line">Misc——&gt;Security——&gt;Vault——&gt;Optional</span><br></pre></td></tr></table></figure>
<p>其他的设置请自行学习，本文不是OpenCore教程。</p>
<p>至此，可以进入系统，并能对付使用了。<br>剩下一个最大的问题就是6370M显卡驱动问题，Clover里有专门的ATIConnectors配置选项，OC里没有。另一个问题是无线网卡。</p>
<h1 id="11月28日"><a href="#11月28日" class="headerlink" title="11月28日"></a>11月28日</h1><p>驱动无线网卡，去掉笨重的DSDT。<br>同时，此网卡设备并没有体现在机器的ACPI中，dsdt中唯独缺少0x001c0005这个硬件位置，但是用其他工具能找到这个硬件位置，并且系统识别无线网卡的设备ID为PCI68c,2e。苹果无线网卡驱动中没有pci168c,2e这个ID，所以必须仿冒为pci168c,2a。<br>原来的做法是在DSDT中添加这个设备，不过用了OC，觉得加载DSDT有点说不过去，所以做了个无线网卡的SSDT。</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br><span class="line">82</span><br><span class="line">83</span><br><span class="line">84</span><br><span class="line">85</span><br><span class="line">86</span><br><span class="line">87</span><br><span class="line">88</span><br><span class="line">89</span><br><span class="line">90</span><br><span class="line">91</span><br><span class="line">92</span><br><span class="line">93</span><br><span class="line">94</span><br><span class="line">95</span><br><span class="line">96</span><br><span class="line">97</span><br><span class="line">98</span><br><span class="line">99</span><br><span class="line">100</span><br><span class="line">101</span><br><span class="line">102</span><br><span class="line">103</span><br><span class="line">104</span><br><span class="line">105</span><br><span class="line">106</span><br><span class="line">107</span><br><span class="line">108</span><br><span class="line">109</span><br><span class="line">110</span><br><span class="line">111</span><br><span class="line">112</span><br><span class="line">113</span><br></pre></td><td class="code"><pre><span class="line">DefinitionBlock (<span class="string">""</span>, <span class="string">"SSDT"</span>, <span class="number">1</span>, <span class="string">"qingqing"</span>, <span class="string">"AR92xx"</span>, <span class="number">0x00000000</span>)</span><br><span class="line">&#123;</span><br><span class="line">External (_SB_.PCI0, DeviceObj) </span><br><span class="line"></span><br><span class="line">Scope (\_SB.PCI0)</span><br><span class="line">    &#123;</span><br><span class="line">    Device (AIRP)</span><br><span class="line">    &#123;</span><br><span class="line">        Name (_ADR, <span class="number">0x001C0005</span>) </span><br><span class="line">        Device (ARPT)</span><br><span class="line">    &#123;</span><br><span class="line">    Name (_ADR, Zero) </span><br><span class="line">    Name (_SUN, <span class="number">0x03</span>) </span><br><span class="line">    Method (_DSM, <span class="number">4</span>, NotSerialized) </span><br><span class="line">             &#123;</span><br><span class="line">                Store (Package (<span class="number">0x10</span>)</span><br><span class="line">                           &#123;</span><br><span class="line">                            <span class="string">"AAPL,slot-name"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x08</span>)</span><br><span class="line">                           &#123;</span><br><span class="line">                               <span class="string">"AirPort"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"device-id"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x04</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                             <span class="number">0x2A</span>, <span class="number">0x00</span>, <span class="number">0x00</span>, <span class="number">0x00</span>                         </span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"compatible"</span>, </span><br><span class="line">                             Buffer (<span class="number">0x0B</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                            <span class="string">"pci168c,2a"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                           <span class="string">"IOName"</span>, </span><br><span class="line">                           Buffer (<span class="number">0x0B</span>)</span><br><span class="line">                           &#123;</span><br><span class="line">                                <span class="string">"pci168c,2a"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"name"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x28</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                                <span class="string">"Atheros AR5B97 Wireless Network Adapter"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"device_type"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x10</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                                <span class="string">"AirPort Extreme"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"model"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x28</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                                <span class="string">"Atheros AR5B97 Wireless Network Adapter"</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"built-in"</span>, </span><br><span class="line">                            Buffer (One)</span><br><span class="line">                            &#123;</span><br><span class="line">                                 <span class="number">0x01</span>                                           </span><br><span class="line">                            &#125;</span><br><span class="line">                        &#125;, Local0)</span><br><span class="line">                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))</span><br><span class="line">                    Return (Local0)</span><br><span class="line">                &#125;</span><br><span class="line"></span><br><span class="line">                Method (_STA, <span class="number">0</span>, NotSerialized) </span><br><span class="line">                &#123;</span><br><span class="line">                    If (_OSI (<span class="string">"Darwin"</span>))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (<span class="number">0x0F</span>)</span><br><span class="line">                    &#125;</span><br><span class="line">                    Else</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (Zero)</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        Method (DTGP, <span class="number">5</span>, NotSerialized) </span><br><span class="line">        &#123;</span><br><span class="line">            If (LEqual (Arg0, ToUUID (<span class="string">"a0b5b7c6-1318-441c-b0c9-fe695eaf949b"</span>)))</span><br><span class="line">            &#123;</span><br><span class="line">                If (LEqual (Arg1, One))</span><br><span class="line">                &#123;</span><br><span class="line">                    If (LEqual (Arg2, Zero))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Store (Buffer (One)</span><br><span class="line">                            &#123;</span><br><span class="line">                                 <span class="number">0x03</span>                                           </span><br><span class="line">                            &#125;, Arg4)</span><br><span class="line">                        Return (One)</span><br><span class="line">                    &#125;</span><br><span class="line"></span><br><span class="line">                    If (LEqual (Arg2, One))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (One)</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">            Store (Buffer (One)</span><br><span class="line">                &#123;</span><br><span class="line">                     <span class="number">0x00</span>                                           </span><br><span class="line">                &#125;, Arg4)</span><br><span class="line">            Return (Zero)</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>然后把这个SSDT添加到OpenCore配置中。至此，无线网卡驱动成功。<br>由于笔记本只安装MacOSX系统，所以直接使用重命名方式来修正ACPI。</p>
<ol>
<li>GFX0 to IGPU <figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">find：0x50454750</span><br><span class="line">0x47465830</span><br></pre></td></tr></table></figure></li>
<li>EC0 to EC<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">find：0x42415431</span><br><span class="line">Replace: 0x42415430</span><br></pre></td></tr></table></figure></li>
<li>强制使用二进制补丁修复0D6D问题，解决供电和睡眠唤醒问题，意外的收获是显卡的功耗降了下来。<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line">find： 0x0a0d0a03</span><br><span class="line">Replace: 0x0a0d0a00</span><br></pre></td></tr></table></figure>

</li>
</ol>
<h1 id="12月6日"><a href="#12月6日" class="headerlink" title="12月6日"></a>12月6日</h1><p>考虑到OpenCore里可以为设备注入属性，所以再次调整无线网卡驱动方案，只在SSDT里为无线网卡添加设备位置。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br></pre></td><td class="code"><pre><span class="line">DefinitionBlock (&quot;&quot;, &quot;SSDT&quot;, 1, &quot;qingqing&quot;, &quot;AR92xx&quot;, 0x00000000)</span><br><span class="line">&#123;</span><br><span class="line">    External (_SB_.PCI0, DeviceObj) </span><br><span class="line">    Scope (\_SB.PCI0)</span><br><span class="line">    &#123;</span><br><span class="line">        Device (AIRP)</span><br><span class="line">        &#123;</span><br><span class="line">            Name (_ADR, 0x001C0005)</span><br><span class="line">            Device (ARPT)</span><br><span class="line">            &#123;</span><br><span class="line">                Name (_ADR, Zero) </span><br><span class="line">                Method (_STA, 0, NotSerialized)</span><br><span class="line">                &#123;</span><br><span class="line">                    If (_OSI (&quot;Darwin&quot;))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (0x0F)</span><br><span class="line">                    &#125;</span><br><span class="line">                    Else</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (Zero)</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>然后用OC注入属性。</p>
<h1 id="12月22日"><a href="#12月22日" class="headerlink" title="12月22日"></a>12月22日</h1><p>从使用OpenCore开始就一直为AMD Radeon HD 6370M显卡的驱动方法所困扰。在Clover时代，AMD显卡的驱动方式大致是这样几种：<br>InjectATI，让Clover检测并注入显卡信息，也可以使用SSDT注入。<br>LoadVBios，载入AMD显卡rom。所有正确驱动的AMD显卡都会载入VBios，但是有些无法自动载入的，就需要强制注入VBios数据。<br>ATIConnectorsDataPatch，修复AMD显卡的显示接口的缓冲帧数据，指定FBName。<br>这几种方式有时需要联合使用。但是如果厘清了显卡的驱动机制，在OpenCore下只需要用设备属性注入或SSDT两种方式之一就可搞定。</p>
<h2 id="一、通过OC的DeviceProerties设备属性注入修复AMD显卡。"><a href="#一、通过OC的DeviceProerties设备属性注入修复AMD显卡。" class="headerlink" title="一、通过OC的DeviceProerties设备属性注入修复AMD显卡。"></a>一、通过OC的DeviceProerties设备属性注入修复AMD显卡。</h2><p>这种方式基本上抛弃了DSDT的修补和SSDT的使用。下面结合AMD6370M的实例进行讲解。<br><img src="6370.png" width="80%" alt="OC属性修复6370M显卡"><br>首先确定显卡的PCI位置，比如我的是这样：_SB.PCI0.P0P2.PEGP<br>在DeviceProerties的Add下添加如下的设备驱动目录<br><code>PciRoot(0x0)/PCi(0x1,0x0)/Pci(0x0,0x0)</code></p>
<ol>
<li>device-id （data）<br>指定显卡id，对于仿冒特别需要。如果你的显卡id在AMD的显卡驱动里有，device-id属性就不是必须注入项。</li>
<li>@0,name  （String）<br>指定显示接口的FBName。我的显卡有3个显示接口，LVDS/HDMI/VGA，那我可以写3个，“@0,name”、“@1,name”、“@2,name”。当然只想用一个也行。不管是@几，FBName都是哪一个。</li>
<li>ATY,bin_image<br>这一项相当于CLover里的LoadVBios，就是载入显卡rom。非必须，但是能解决特殊问题。<br>成功驱动的显卡，都会载入ATY,bin_image数据的。<br>个别型号的笔记本会出现VBios载入不进来的情况，那就只有强行注入了VBios数据了。<br>ATY,bin_image 和显卡的rom 数据还是有些不一样的。不过没用在意，系统会处理的。</li>
</ol>
<h2 id="二、使用SSDT驱动显卡的方法。"><a href="#二、使用SSDT驱动显卡的方法。" class="headerlink" title="二、使用SSDT驱动显卡的方法。"></a>二、使用SSDT驱动显卡的方法。</h2><p>使用SSDT驱动Acer 4738G的6370M显卡，遇到的最大问题是，系统会直接加载显卡信息，导致VBIOS加载不进来。<br>问题的根源在于，ACPI中的PEGP存在Name (_ADR, 0xFFFF)，使用SSDT驱动显卡需要屏蔽掉ACPI中的PEGP方法，让其变成Name (_ADR, Zero)。<br>另外一个问题是，即使屏蔽了PEGP，还有VGA也存在Name (_ADR, 0xFFFF)，因为在_SB.PCI0.P0P2这个路径下，同时存在PEGP和VGA。没了PEGP，系统初始化的时候会去找VGA。<br>所以彻底解决的办法是直接屏蔽掉P0P2。<br>那么我们就可以做如下的屏蔽P0P2的SSDT来屏蔽掉P0P2。</p>
<figure class="highlight plain"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br></pre></td><td class="code"><pre><span class="line">Scope (\_SB.PCI0.P0P2)</span><br><span class="line">&#123;</span><br><span class="line">    Method (_STA, 0, NotSerialized)</span><br><span class="line">     &#123;</span><br><span class="line">        Return (Zero)</span><br><span class="line">     &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>以下是完整的显卡SSDT</p>
<figure class="highlight c++"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br><span class="line">13</span><br><span class="line">14</span><br><span class="line">15</span><br><span class="line">16</span><br><span class="line">17</span><br><span class="line">18</span><br><span class="line">19</span><br><span class="line">20</span><br><span class="line">21</span><br><span class="line">22</span><br><span class="line">23</span><br><span class="line">24</span><br><span class="line">25</span><br><span class="line">26</span><br><span class="line">27</span><br><span class="line">28</span><br><span class="line">29</span><br><span class="line">30</span><br><span class="line">31</span><br><span class="line">32</span><br><span class="line">33</span><br><span class="line">34</span><br><span class="line">35</span><br><span class="line">36</span><br><span class="line">37</span><br><span class="line">38</span><br><span class="line">39</span><br><span class="line">40</span><br><span class="line">41</span><br><span class="line">42</span><br><span class="line">43</span><br><span class="line">44</span><br><span class="line">45</span><br><span class="line">46</span><br><span class="line">47</span><br><span class="line">48</span><br><span class="line">49</span><br><span class="line">50</span><br><span class="line">51</span><br><span class="line">52</span><br><span class="line">53</span><br><span class="line">54</span><br><span class="line">55</span><br><span class="line">56</span><br><span class="line">57</span><br><span class="line">58</span><br><span class="line">59</span><br><span class="line">60</span><br><span class="line">61</span><br><span class="line">62</span><br><span class="line">63</span><br><span class="line">64</span><br><span class="line">65</span><br><span class="line">66</span><br><span class="line">67</span><br><span class="line">68</span><br><span class="line">69</span><br><span class="line">70</span><br><span class="line">71</span><br><span class="line">72</span><br><span class="line">73</span><br><span class="line">74</span><br><span class="line">75</span><br><span class="line">76</span><br><span class="line">77</span><br><span class="line">78</span><br><span class="line">79</span><br><span class="line">80</span><br><span class="line">81</span><br></pre></td><td class="code"><pre><span class="line">DefinitionBlock (<span class="string">""</span>, <span class="string">"SSDT"</span>, <span class="number">2</span>, <span class="string">"zuoyou"</span>, <span class="string">"6370m"</span>, <span class="number">0x00000000</span>)</span><br><span class="line">&#123;</span><br><span class="line">    External (_SB_.PCI0, DeviceObj)</span><br><span class="line">    External (_SB_.PCI0.P0P2, DeviceObj)</span><br><span class="line"></span><br><span class="line">    Scope (\_SB.PCI0.P0P2)</span><br><span class="line">    &#123;</span><br><span class="line">        Method (_STA, <span class="number">0</span>, NotSerialized)  <span class="comment">// _STA: Status</span></span><br><span class="line">        &#123;</span><br><span class="line">            If (_OSI (<span class="string">"Darwin"</span>))</span><br><span class="line">            &#123;</span><br><span class="line">                Return (Zero)</span><br><span class="line">            &#125;</span><br><span class="line">            Else</span><br><span class="line">            &#123;</span><br><span class="line">                Return (<span class="number">0x0F</span>)</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line"></span><br><span class="line">    Scope (\_SB.PCI0)</span><br><span class="line">    &#123;</span><br><span class="line">        Device (PEGT)</span><br><span class="line">        &#123;</span><br><span class="line">            Name (_ADR, <span class="number">0x00010000</span>)  <span class="comment">// _ADR: Address</span></span><br><span class="line">            Name (_SUN, One)  <span class="comment">// _SUN: Slot User Number</span></span><br><span class="line">            Device (GFX0)</span><br><span class="line">            &#123;</span><br><span class="line">                Name (_ADR, <span class="number">0xFFFF</span>)  <span class="comment">// _ADR: Address</span></span><br><span class="line">                Method (_DSM, <span class="number">4</span>, NotSerialized)  <span class="comment">// _DSM: Device-Specific Method</span></span><br><span class="line">                &#123;</span><br><span class="line">                    Local0 = Package (<span class="number">0x04</span>)</span><br><span class="line">                        &#123;</span><br><span class="line">                            <span class="string">"ATY,bin_image"</span>, </span><br><span class="line">                            Buffer (<span class="number">0xF000</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                                <span class="number">0x55</span>, <span class="number">0xAA</span>, <span class="number">0x78</span>, <span class="number">0xE9</span>, <span class="number">0x35</span>, <span class="number">0x02</span>... <span class="comment">//以下数据略去</span></span><br><span class="line">                            &#125;, </span><br><span class="line"></span><br><span class="line">                            <span class="string">"hda-gfx"</span>, </span><br><span class="line">                            Buffer (<span class="number">0x0A</span>)</span><br><span class="line">                            &#123;</span><br><span class="line">                                <span class="string">"onboard-2"</span></span><br><span class="line">                            &#125;</span><br><span class="line">                        &#125;</span><br><span class="line">                    DTGP (Arg0, Arg1, Arg2, Arg3, RefOf (Local0))</span><br><span class="line">                    Return (Local0)</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line">        &#125;</span><br><span class="line"></span><br><span class="line">        Method (DTGP, <span class="number">5</span>, NotSerialized)</span><br><span class="line">        &#123;</span><br><span class="line">            If ((Arg0 == ToUUID (<span class="string">"a0b5b7c6-1318-441c-b0c9-fe695eaf949b"</span>)))</span><br><span class="line">            &#123;</span><br><span class="line">                If ((Arg1 == One))</span><br><span class="line">                &#123;</span><br><span class="line">                    If ((Arg2 == Zero))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Arg4 = Buffer (One)</span><br><span class="line">                            &#123;</span><br><span class="line">                                 <span class="number">0x03</span></span><br><span class="line">                            &#125;</span><br><span class="line">                        Return (One)</span><br><span class="line">                    &#125;</span><br><span class="line"></span><br><span class="line">                    If ((Arg2 == One))</span><br><span class="line">                    &#123;</span><br><span class="line">                        Return (One)</span><br><span class="line">                    &#125;</span><br><span class="line">                &#125;</span><br><span class="line">            &#125;</span><br><span class="line"></span><br><span class="line">            Arg4 = Buffer (One)</span><br><span class="line">                &#123;</span><br><span class="line">                     <span class="number">0x00</span></span><br><span class="line">                &#125;</span><br><span class="line">            Return (Zero)</span><br><span class="line">        &#125;</span><br><span class="line">    &#125;</span><br><span class="line">&#125;</span><br></pre></td></tr></table></figure>
<p>至此，此次黑果过程基本完毕。</p>
<p>附上EFI引导文件(传统BIOS的boot引导需要自行制作)<br><a href="https://gitee.com/halma/Oc55.git" target="_blank" rel="noopener"> Acer4738G-High Sierra-OpenCore0.5.5</a></p>

    </div>

    
    
    

      <footer class="post-footer">
          <div class="post-tags">
              <a href="/tags/%E9%BB%91%E8%8B%B9%E6%9E%9C/" rel="tag"># 黑苹果</a>
              <a href="/tags/Acer-4738G/" rel="tag"># Acer 4738G</a>
          </div>

        


        
    <div class="post-nav">
      <div class="post-nav-item">
    <a href="/2020/%E6%B5%81%E7%A8%8B%E5%9B%BE%E8%B0%83%E8%89%B2/" rel="prev" title="流程图调色">
      <i class="fa fa-chevron-left"></i> 流程图调色
    </a></div>
      <div class="post-nav-item">
    <a href="/2020/%E7%94%A8FreeBSD%E6%9E%B6%E8%AE%BEMacOS%E4%B8%93%E7%94%A8%E7%9A%84AFP%E6%96%87%E4%BB%B6%E6%9C%8D%E5%8A%A1%E5%99%A8/" rel="next" title="用FreeBSD架设MacOS专用的AFP文件服务器">
      用FreeBSD架设MacOS专用的AFP文件服务器 <i class="fa fa-chevron-right"></i>
    </a></div>
    </div>
      </footer>
    
  </article>
  
  
  

  </div>


          </div>
          

<script>
  window.addEventListener('tabs:register', () => {
    let { activeClass } = CONFIG.comments;
    if (CONFIG.comments.storage) {
      activeClass = localStorage.getItem('comments_active') || activeClass;
    }
    if (activeClass) {
      let activeTab = document.querySelector(`a[href="#comment-${activeClass}"]`);
      if (activeTab) {
        activeTab.click();
      }
    }
  });
  if (CONFIG.comments.storage) {
    window.addEventListener('tabs:click', event => {
      if (!event.target.matches('.tabs-comment .tab-content .tab-pane')) return;
      let commentClass = event.target.classList[1];
      localStorage.setItem('comments_active', commentClass);
    });
  }
</script>

        </div>
          
  
  <div class="toggle sidebar-toggle">
    <span class="toggle-line toggle-line-first"></span>
    <span class="toggle-line toggle-line-middle"></span>
    <span class="toggle-line toggle-line-last"></span>
  </div>

  <aside class="sidebar">
    <div class="sidebar-inner">

      <ul class="sidebar-nav motion-element">
        <li class="sidebar-nav-toc">
          文章目录
        </li>
        <li class="sidebar-nav-overview">
          站点概览
        </li>
      </ul>

      <!--noindex-->
      <div class="post-toc-wrap sidebar-panel">
          <div class="post-toc motion-element"><ol class="nav"><li class="nav-item nav-level-1"><a class="nav-link" href="#11月24日"><span class="nav-number">1.</span> <span class="nav-text">11月24日</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#11月28日"><span class="nav-number">2.</span> <span class="nav-text">11月28日</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#12月6日"><span class="nav-number">3.</span> <span class="nav-text">12月6日</span></a></li><li class="nav-item nav-level-1"><a class="nav-link" href="#12月22日"><span class="nav-number">4.</span> <span class="nav-text">12月22日</span></a><ol class="nav-child"><li class="nav-item nav-level-2"><a class="nav-link" href="#一、通过OC的DeviceProerties设备属性注入修复AMD显卡。"><span class="nav-number">4.1.</span> <span class="nav-text">一、通过OC的DeviceProerties设备属性注入修复AMD显卡。</span></a></li><li class="nav-item nav-level-2"><a class="nav-link" href="#二、使用SSDT驱动显卡的方法。"><span class="nav-number">4.2.</span> <span class="nav-text">二、使用SSDT驱动显卡的方法。</span></a></li></ol></li></ol></div>
      </div>
      <!--/noindex-->

      <div class="site-overview-wrap sidebar-panel">
        <div class="site-author motion-element" itemprop="author" itemscope itemtype="http://schema.org/Person">
    <img class="site-author-image" itemprop="image" alt="左右流之"
      src="/images/avatar.gif">
  <p class="site-author-name" itemprop="name">左右流之</p>
  <div class="site-description" itemprop="description">折腾不需要理由</div>
</div>
<div class="site-state-wrap motion-element">
  <nav class="site-state">
      <div class="site-state-item site-state-posts">
          <a href="/archives/">
        
          <span class="site-state-item-count">9</span>
          <span class="site-state-item-name">日志</span>
        </a>
      </div>
      <div class="site-state-item site-state-categories">
            <a href="/categories/">
          
        <span class="site-state-item-count">3</span>
        <span class="site-state-item-name">分类</span></a>
      </div>
      <div class="site-state-item site-state-tags">
            <a href="/tags/">
          
        <span class="site-state-item-count">11</span>
        <span class="site-state-item-name">标签</span></a>
      </div>
  </nav>
</div>
  <div class="links-of-author motion-element">
      <span class="links-of-author-item">
        <a href="https://gitee.com/halma/" title="Gitee → https:&#x2F;&#x2F;gitee.com&#x2F;halma&#x2F;" rel="noopener" target="_blank"><i class="fa fa-fw fa-github"></i>Gitee</a>
      </span>
      <span class="links-of-author-item">
        <a href="mailto:459197097@qq.com" title="E-Mail → mailto:459197097@qq.com" rel="noopener" target="_blank"><i class="fa fa-fw fa-envelope"></i>E-Mail</a>
      </span>
  </div>



      </div>

    </div>
  </aside>
  <div id="sidebar-dimmer"></div>


      </div>
    </main>

    <footer class="footer">
      <div class="footer-inner">
        

        

<div class="copyright">
  
  &copy; 
  <span itemprop="copyrightYear">2025</span>
  <span class="with-love">
    <i class="fa fa-user"></i>
  </span>
  <span class="author" itemprop="copyrightHolder">左右流之</span>
</div>
  <div class="powered-by">由 <a href="https://hexo.io/" class="theme-link" rel="noopener" target="_blank">Hexo</a> & <a href="https://pisces.theme-next.org/" class="theme-link" rel="noopener" target="_blank">NexT.Pisces</a> 强力驱动
  </div>

        
<div class="busuanzi-count">
  <script async src="https://busuanzi.ibruce.info/busuanzi/2.3/busuanzi.pure.mini.js"></script>
    <span class="post-meta-item" id="busuanzi_container_site_uv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-user"></i>
      </span>
      <span class="site-uv" title="总访客量">
        <span id="busuanzi_value_site_uv"></span>
      </span>
    </span>
    <span class="post-meta-divider">|</span>
    <span class="post-meta-item" id="busuanzi_container_site_pv" style="display: none;">
      <span class="post-meta-item-icon">
        <i class="fa fa-eye"></i>
      </span>
      <span class="site-pv" title="总访问量">
        <span id="busuanzi_value_site_pv"></span>
      </span>
    </span>
</div>








      </div>
    </footer>
  </div>

  
  <script src="/lib/anime.min.js"></script>
  <script src="//cdn.jsdelivr.net/npm/jquery@3/dist/jquery.min.js"></script>
  <script src="//cdn.jsdelivr.net/gh/fancyapps/fancybox@3/dist/jquery.fancybox.min.js"></script>
  <script src="/lib/velocity/velocity.min.js"></script>
  <script src="/lib/velocity/velocity.ui.min.js"></script>

<script src="/js/utils.js"></script>

<script src="/js/motion.js"></script>


<script src="/js/schemes/pisces.js"></script>


<script src="/js/next-boot.js"></script>




  













<script>
if (document.querySelectorAll('pre.mermaid').length) {
  NexT.utils.getScript('//cdn.jsdelivr.net/npm/mermaid@8/dist/mermaid.min.js', () => {
    mermaid.initialize({
      theme    : 'forest',
      logLevel : 3,
      flowchart: { curve     : 'linear' },
      gantt    : { axisFormat: '%m/%d/%Y' },
      sequence : { actorMargin: 50 }
    });
  }, window.mermaid);
}
</script>


  

  

  


<script>
NexT.utils.loadComments(document.querySelector('#valine-comments'), () => {
  NexT.utils.getScript('//unpkg.com/valine/dist/Valine.min.js', () => {
    var GUEST = ['nick', 'mail', 'link'];
    var guest = 'nick,mail,link';
    guest = guest.split(',').filter(item => {
      return GUEST.includes(item);
    });
    new Valine({
      el         : '#valine-comments',
      verify     : false,
      notify     : false,
      appId      : 'pj8AT7zpJyISRPiNehTuH3SM-gzGzoHsz',
      appKey     : 'A1fvdQLU97x0GozkPIR0KHDW',
      placeholder: "说点什么？",
      avatar     : 'mm',
      meta       : guest,
      pageSize   : '10' || 10,
      visitor    : false,
      lang       : '' || 'zh-cn',
      path       : location.pathname,
      recordIP   : false,
      serverURLs : ''
    });
  }, window.Valine);
});
</script>

</body>
</html>
